package websocket

import (
	"code.google.com/p/go.net/websocket"
	"server/lib/Imartini"
)

var base = "websocket"
var route = [][]interface{}{
	{"", "*", "/send", websocket.Handler(ChatroomServer).ServeHTTP},
	{"", "GET", "", Client},
}

func init() {
	Imartini.M.AddIroute(base, route)
	// Imartini.M.AddRoute("GET", "/js/", http.FileServer(http.Dir("/var/www/js/")))
	// log.Println(Imartini.M.Iroute)
}
